package com.example.demo.controller;

import com.example.demo.pojo.Result;
import com.example.demo.pojo.vo.UserDetailVO;
import com.example.demo.service.UserDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserDetailController {
    @Autowired
    private UserDetailService userDetailService;

    @GetMapping("/polycystic/user/detail")
    public Result<UserDetailVO> getDetail(){
        UserDetailVO userDetailVO=userDetailService.getDetail();
        return Result.success(userDetailVO);
    }
}
